package cn.fuxue.hrms.common.entity;
import java.sql.Timestamp;
/**
 * @author 王文勇
 * @version 1.0
 * 审批任务实体类
 */

public class ApprovalTask {
    // 主键
    private int id;
    // 所属实例 ID，外键关联 workflow_instance 表的 id
    private int instanceId;
    // 节点 ID，外键关联 workflow_node 表的 id
    private int nodeId;
    // 处理人 ID
    private Integer assigneeId;
    // 任务状态
    private String status;
    // 备注
    private String remark;
    // 最后修改人 ID
    private Integer modifyId;
    // 创建人 ID
    private Integer createId;
    // 是否删除，1 表示已删除，0 表示未删除
    private boolean isDeleted;
    // 创建时间
    private Timestamp createTime;
    // 更新时间
    private Timestamp updateTime;

    // 无参构造函数
    public ApprovalTask() {
    }

    // 全参构造函数
    public ApprovalTask(int id, int instanceId, int nodeId, Integer assigneeId,
                        String status, String remark, Integer modifyId,
                        Integer createId, boolean isDeleted, Timestamp createTime,
                        Timestamp updateTime) {
        this.id = id;
        this.instanceId = instanceId;
        this.nodeId = nodeId;
        this.assigneeId = assigneeId;
        this.status = status;
        this.remark = remark;
        this.modifyId = modifyId;
        this.createId = createId;
        this.isDeleted = isDeleted;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(int instanceId) {
        this.instanceId = instanceId;
    }

    public int getNodeId() {
        return nodeId;
    }

    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getAssigneeId() {
        return assigneeId;
    }

    public void setAssigneeId(Integer assigneeId) {
        this.assigneeId = assigneeId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getModifyId() {
        return modifyId;
    }

    public void setModifyId(Integer modifyId) {
        this.modifyId = modifyId;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ApprovalTask{" +
                "id=" + id +
                ", instanceId=" + instanceId +
                ", nodeId=" + nodeId +
                ", assigneeId=" + assigneeId +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                ", modifyId=" + modifyId +
                ", createId=" + createId +
                ", isDeleted=" + isDeleted +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
